/*
 * @Description:
 * @Author: maxyang
 * @Date: 2022-07-09 19:13:36
 * @LastEditTime: 2022-07-09 19:23:58
 * @LastEditors: liutq
 * @Reference:
 */
package banner

import (
	"net/http"

	"github.com/gin-gonic/gin"
	"github.com/maxyang107/jinglan/common"
	"github.com/maxyang107/jinglan/service"
)

/**
 * @description: 方法描述：获取banner列表
 * @Author: maxyang
 * @return {*}
 * @param {*gin.Context} c
 */
func GetBannerList(c *gin.Context) {
	bl := service.BannerService.GetBannerList()

	common.ResponseDetailToJson(int(http.StatusOK), bl, "success", c)
}
